<form class="layui-form search-form">
    <div class="layui-input-inline">
        <select name="status" >
            <option value="">申请状态</option>
            <option value="0">待审核 </option>
            <option value="1">同意打款</option>
            <option value="2">拒绝打款</option>
           
        </select>
       
    </div>
    <div class="layui-input-inline">
        <input class="layui-input" name="date" placeholder="请选择申请时间" type="text" readonly="" id="test1"/>
    </div>
    <button class="layui-btn layui-btn-sm" lay-filter="searchform" lay-submit="">
        <i class="fa fa-search">
        </i>
        查询
    </button>
    
    {if $Think.session.admin_id != 1}
       
        <button class="layui-btn layui-btn-sm layui-plus" type="button">
            <i class="fa fa-plus">
            </i>
            申请提现
        </button>
        
    {/if}
</form>
<table class="layui-table data-table" lay-filter="data_table">
</table>
<script id="toolbar_normal" type="text/html">
    {if $Think.session.admin_id == 1}
        {{# if (d.status == 0) { }}
        <a class="layui-btn layui-btn-xs" lay-event="enabled">
            同意打款
        </a>
        <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="disabled">
            拒绝打款
        </a>
         {{# } else if(d.status == 1) { }}
        <span style="color:#6590DC">同意打款</span>
        {{# } else { }}
        <span style="color:#FD4B4B">拒绝打款</span>
        {{# } }}
    {else /}
        {{# if (d.status == 0) { }}
        <span style="color:#E7DB74">待审核</span>
        {{# } else if(d.status == 1) { }}
        <span style="color:#6590DC">同意打款</span>
        {{# } else { }}
        <span style="color:#FD4B4B">拒绝打款</span>
        {{# } }}
    {/if}
</script>
{load href="__module__/admin/withdraw/index.js" /}
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
      
        //执行一个laydate实例
        laydate.render({
            elem: '#test1' //指定元素
        });
    });
</script>
